package com.draft.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Meng Xu
 * @spec
 * @date 2023-10-30 15:43
 **/
@Slf4j
@RestController
@RequestMapping("info")
public class ErrorInfoTestController {

    @GetMapping("/errorLogTest")
    public String errorInfoTest(){

        try {
            int i = 10/0;

        } catch(Exception e) {
            log.error(" ErrorInfoTestController.errorInfoTest :", e);


        }
        return "sd  '";
    }
}
